/*
 * Created on 2006-2-15
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package com.hitrust.gs.action;

import com.hitrust.gs.service.GSBaseAction;
import com.hitrust.gs.service.GSBaseForm;

import com.hitrust.gs.form.*;
import com.hitrust.gs.lib.GSBaseConstants;
/**
 * @author simonyi
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class GSProviderBackToManufactureAction extends GSBaseAction  {

    public String execute(GSBaseForm aForm) throws Exception {
     
        String providerid = aForm.getRequest().getParameter("selectedproviderid");
        GSProviderScanToManufactureForm tForm = (GSProviderScanToManufactureForm )aForm.getSession().getAttribute("currentmanufacture");
        aForm.getSession().removeAttribute("currentmanufacture");
        
        tForm.setProviderid(providerid);
        
        aForm.getRequest().setAttribute("buffer",tForm);
        return GSBaseConstants.FORWARD_SUCCESS;
    }
}
